<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="s" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="js/jquery-1.10.1.js"></script>
</head>
<body>
	<form action="search.action">
	    学生姓名: <input name="sname" /> <br >
	    性别:  <select name="sex">
	    <option value="0">---</option>
	    <option value="男">男</option>
	    <option value="女">女</option></select>
	    <br >
	    生日from:
	    <input type="date" name="birthday" >
	    <button>查询</button>
    </form>
    <hr />
    <c:forEach items="${page.list}" var="temp" varStatus="stat">
        <h4>${stat.count}, ${temp.id}, ${temp.sname}, ${temp.birthday}, ${temp.birthdayStr}, ${temp.sex}</h4>
        <s:eval expression="temp.birthday"></s:eval>
        <a href="delete.action?id=${temp.id}">删除</a>
        <a href="${temp.id}/update.action">更新</a>
    </c:forEach>
    <div>总条数${page.total }   第几页${page.pageNum }  总页数${page.pages }</div>
</body>
</html>